<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>下载</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
		<load href= "__JS__/jshelper.js" /> 
<script type="text/JavaScript">
				function workremark(id,classid,pname,p){
					window.location.href="__URL__/remark/id/"+id;
				}
				function worksearch(id){
					window.location.href="__URL__/workdetail/id/"+id;
				}
				function workdelete(id,classid,pname,p){
					if (confirm("你确定要删除吗")==true)
						postwith('__URL__/workdelete',{id:id,classid:classid,pname:pname,p:p});
				}
				function filedownload(classid,pname){
					postwith('__URL__/filedownload',{classid:classid,pname:pname});
				}
					window.onload=show;
	</script>
	<load href="__JS__/jQuery/jquery.js" />
	<load href="__JS__/jQuery/jquery.form.js" />
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location=window.location.href;
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>
</head>
<body>
	<layout name="Auth:header" />
    		<div class="container-fluid">
     			<div class="row-fluid">
        			<layout name="Auth:leftmenu" />
                    	<div class="span8">
                          <div class="hero-unit">
                            <h1>下载</h1>
                            <p style="font-size:12px">当前位置：
                                <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                                <a href='__URL__/index' class="nowpositionhref">后台管理</a>>
                                <a href='__URL__/classdetail' class="nowpositionhref">教学班管理</a>>
                                <a href='__URL__/classfile/id/{$classid}' class="nowpositionhref">作业管理</a>>
                                <a href="" class="nowpositionhref" >作业</a>
							</p>
                           	</div>
                            <a href="#" name='download'   onClick="filedownload('{$classid}','{$pname}')" style=" font-size:16px; text-decoration:none; font-weight:bold;">批量下载</a>
					<table width="100%"  class="table table-striped table-bordered table-condensed">
						<thead>
							<tr>
								<th>标题</th>
								<th>学生姓名</th>							
								<th>提交时间</th>	
								<th>点评</th>						
								<th>操作</th>								
							</tr>
						</thead>
						<load href"__PUBLIC__/js/list_show.js">
						<tbody id="tab">
							<volist name='list' id='vo' >
								<tr id="table_work_show" height="40px">
									<td style="display:none;">{$vo.id}</td>	<!--ID-->
									<td><a href="__ROOT__{$vo.path}{$vo.name}">{$vo.name}</a></td><!--标题-->
									<td>{$vo.nname}</td><!--作者-->
									<td >{$vo.time}</td><!--发表时间-->	
									<if condition="$vo.a neq 0">
									<td>已评</td>
									<else/>	
									<td>未评</td>
									</if>
									<td>
										<a href="#"  name='delete_work' onClick="workdelete('{$vo.id}','{$vo.classid}','{$pname}','{$p}')" style=" font-size:12px;">删除</a>
										<a href="#"  name='remark_work' onClick="workremark('{$vo.id}','{$vo.classid}','{$pname}','{$p}')" style=" font-size:12px;">点评</a>
									</td>
								</tr>
							</volist>	
						</tbody>	
					</table>
                     <p class="navbar-text pull-right">{$page}</p>  
				</div>
               </div>
              </div>
</body>
</html>